package o;

import android.app.Activity;
import androidx.fragment.app.Fragment;
import java.util.HashMap;
import java.util.Map;
import o.cjg.d;

public final class cjl {
    private static Map<String, Map<String, cjg>> ˊ = new HashMap();
    private static Map<String, cjg> ॱ = new HashMap();

    public static void ˎ(String str, Class<? extends Activity> cls) {
        ॱ.put(str, new cjg(cls));
    }

    public static void ˋ(String str, Class<? extends Fragment> cls) {
        ॱ.put(str, new cjg(cls));
    }

    public static Class<? extends Activity> ˋ(String str) {
        cjg ˏ = ˏ(str);
        if (ˏ == null || ˏ.ˊ() != d.ACTIVITY) {
            return null;
        }
        return ˏ.ˏ();
    }

    public static cjg ˏ(String str) {
        return (cjg) ॱ.get(ckw.ˏ(str));
    }

    public static Class<? extends Fragment> ॱ(String str) {
        cjg ˏ = ˏ(str);
        if (ˏ == null || ˏ.ˊ() != d.FRAGMENT) {
            return null;
        }
        return ˏ.ˏ();
    }
}
